package com.gzx.plugin.tjzy.modular.repair.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gzx.plugin.tjzy.modular.repair.entity.GzxRepairPhoneNumber;
import com.gzx.plugin.tjzy.modular.repair.entity.GzxRepairPhoneNumberDetail;
import com.gzx.plugin.tjzy.modular.repair.param.GzxRepairPhoneNumberPageParam;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * 失联修复
 **/
public interface GzxRepairPhoneNumberService extends IService<GzxRepairPhoneNumber> {

    /**
     * 获取分页
     */
    Page<GzxRepairPhoneNumber> page(GzxRepairPhoneNumberPageParam gzxRepairPhonenumberPageParam);

    /**
     * 删除
     */
    void delete(long id);

    /**
     * 获取详细信息
     */
    List<GzxRepairPhoneNumberDetail> getDetailList(int id);

    /**
     * 导入数据
     */
    void importExcel(MultipartFile file) throws IOException;

    /**
     * 开始失联修复
     */
    void repairNumber(int id);

    // 获取结果
    void loadRepairResult(Integer id);

    //失联修复给主叫号码绑定中间号
    void repairLost();
}
